package com.xz.stu.server.vo.holiday;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Data
public class HolidayBaseVO {

    @Schema(description = "节假日日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private String holidayDate;
    //总天数
    private Integer totalDays;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "holiday")
    private String type; // holiday-节假日 workday-特殊工作日

    @Schema(description = "节假日名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "春节")
    @Size(max = 50, message = "节假日名称长度不能超过50个字符")
    private String name;

    @Schema(description = "备注", example = "放假三天")
    @Size(max = 500, message = "备注长度不能超过500个字符")
    private String remark;
}
